'use strict';
Object.defineProperties(exports, {
  __esModule: { value: !0 },
  [Symbol.toStringTag]: { value: 'Module' },
});
const t = require('./validate.cjs');
function s(r) {
  if (!t.default(r)) throw TypeError('Invalid UUID');
  let f;
  const e = new Uint8Array(16);
  return (
    (e[0] = (f = parseInt(r.slice(0, 8), 16)) >>> 24),
    (e[1] = (f >>> 16) & 255),
    (e[2] = (f >>> 8) & 255),
    (e[3] = f & 255),
    (e[4] = (f = parseInt(r.slice(9, 13), 16)) >>> 8),
    (e[5] = f & 255),
    (e[6] = (f = parseInt(r.slice(14, 18), 16)) >>> 8),
    (e[7] = f & 255),
    (e[8] = (f = parseInt(r.slice(19, 23), 16)) >>> 8),
    (e[9] = f & 255),
    (e[10] = ((f = parseInt(r.slice(24, 36), 16)) / 1099511627776) & 255),
    (e[11] = (f / 4294967296) & 255),
    (e[12] = (f >>> 24) & 255),
    (e[13] = (f >>> 16) & 255),
    (e[14] = (f >>> 8) & 255),
    (e[15] = f & 255),
    e
  );
}
exports.default = s;
